/*
* Copyright (C) 2010 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
*	
* This file is part of imsdroid Project (http://code.google.com/p/imsdroid)
*
* imsdroid is free software: you can redistribute it and/or modify it under the terms of 
* the GNU General Public License as published by the Free Software Foundation, either version 3 
* of the License, or (at your option) any later version.
*	
* imsdroid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
*	
* You should have received a copy of the GNU General Public License along 
* with this program; if not, write to the Free Software Foundation, Inc., 
* 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*
*/
package ietf.params.xml.ns.resource_lists;

import java.util.ArrayList;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.Root;


@Root(name = "list", strict=false)
@Namespace(reference = "urn:ietf:params:xml:ns:resource-lists")
public class ListType {

    @Element(name = "display-name", required=false)
    protected DisplayNameType displayName;    
    @ElementList(name = "external", inline=true, required=false)
    protected java.util.List<ExternalType> externals;
    @ElementList(name = "list", inline=true, required=false)
    protected java.util.List<ListType.List> list;
    @ElementList(name = "entry", inline=true, required=false)
    protected java.util.List<EntryType> entries;
    @ElementList(name = "entry-ref", inline=true, required=false)
    protected java.util.List<EntryRef> entries_ref;
    @Attribute(required=false)
    protected String name;
   
    public DisplayNameType getDisplayName() {
        return displayName;
    }
    
    public void setDisplayName(DisplayNameType value) {
        this.displayName = value;
    }
   
    public String getName() {
        return name;
    }
   
    public void setName(String value) {
        this.name = value;
    }
   
    public java.util.List<EntryType> getEntries(){
    	if(this.entries == null){
    		this.entries = new ArrayList<EntryType>();
    	}
    	return this.entries;
    }
    
    public static class List
        extends ListType
    {


    }

}
